package com.zxl.mytest11;

import java.util.Calendar;
import java.util.Map;
import java.util.TreeMap;

public class TempTest2 {
    
    private static Map<String, Double> rateMap = new TreeMap<>();
    
    static{
        rateMap.put("rate1", 6.8);
        rateMap.put("rate2", 6.9);
        rateMap.put("rate3", 9.2);
        rateMap.put("rate4", 6.7);
//        rateMap.put("rate5", 9.2);
        rateMap.put("rate6", 7.6);
        rateMap.put("rate7", 14.6);
//        rateMap.put("rate8", 6.7);
    }
    
    public static void main(String[] args) {
//        double principal = 10000;
//        double sum = 0;
//        Math.random();
//        for (Entry<String, Double> rate : rateMap.entrySet()) {
//            double count = principal/rate.getValue();
//            sum += count;
//            System.out.println(rate + " : " + count);
//            
//        }
//        System.out.println(sum);
//        SimpleDateFormat simpleDateFormat = new SimpleDateFormat( "yyyyMMdd" );
//        System.out.println(simpleDateFormat.format(new Date()));
        System.out.println("6.10.0".compareTo("6.9.0"));
        System.out.println("6.8.0".compareTo("6.7.0"));
        Calendar calendar = Calendar.getInstance();
        System.out.println(calendar.get(Calendar.MONTH));
    }
}
